package com.carleasoft.mps.adu.business.role.bean.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author ztm
 * @since 2021-09-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("m_authority_target_role")
@ApiModel(value="AuthorityTargetRole对象", description="")
public class AuthorityTargetRoleEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "ID", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "业务编码")
    @TableField("TARGET_CODE")
    private String targetCode;

    @ApiModelProperty(value = "角色编码")
    @TableField("ROLE_CODE")
    private String roleCode;

    @ApiModelProperty(value = "1-用户分类，2-系统管理员，3-组织分类，4-组织，5-部门，6-用户，7-职务，8-职务分组")
    @TableField("TARGET_TYPE")
    private Integer targetType;


}
